/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sunsite.service;

import java.util.List;
import sunsite.po.News;

/**
 *
 * @author mg
 */
public interface NewsService {
    /**
     * 查找最新的5条新闻
     * @param
     * @return
     * @throws java.lang.Exception
     */
    List<News> getTop5News() throws Exception;

    List<News> getNews(int pageNow, int newsType) throws Exception;
    int getPageCount(int newsType) throws Exception;
    News getNewsById(String id) throws Exception;
}
